package com.starsky.websocket;

import com.starsky.websocket.server.WebSocketServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;

/**
 * @desc: websocket启动类
 * @author: wangsh
 * @email: 1057718341@qq.com
 * @time: 2021/4/1 10:25
 */
//@EnableDiscoveryClient
@SpringBootApplication(exclude = {MongoAutoConfiguration.class})
public class WebsocketNettyApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebsocketNettyApplication.class, args);
        try {
            //启动NETTY service
            new WebSocketServer().start();
//            new NettyServer().start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
